<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of RenderUtil
 *
 * @author josem
 */
class RenderUtilFF {

    public static function mostrarCabecera($titulo,$controller,$link="-"){
        LogUtil::info("class RenderUtil", "mostrarCabecera");
        echo '<div id="profile-page" class="wrap">';
        echo '    <div id="icon-page" class="icon32"><br/></div>';            
        echo '    <h2>'.$titulo.'</h2>';
                  self::mostrarResultado($controller->obtenerMensajes(),$link);
        echo '</div>';
        $controller->limpiarMensajes();
    }
    
    public static function mostrarResultado($resultado, $link="-", $class1 = "", $class2 = "") {
        LogUtil::info("class RenderUtil", "mostrarResultado");
        if (is_wp_error($resultado)) {
            if ($class1 == "") {
                $class1 = 'class="error"';
            }
            $mensajes = '';
            foreach ($resultado->get_error_messages() as $mensaje) {
                $mensajes = $mensajes . "<p><strong>ERROR</strong>: $mensaje</p>";
            }
            if ($mensajes != '') {
                echo "<div $class1>";
                echo $mensajes;
                echo '</div>';
            }
        } else if (ValidadorUtil::is_wp_info($resultado)){
            if ($class2 == "") {
                $class2 = 'class="updated fade" style="background-color: rgb(255, 251, 204);"';
            }
            echo "<div $class2>";
                foreach ($resultado->get_info_messages() as $mensaje)
                        echo "<p>$mensaje</p>";
            echo '</div>';
            if($link!="-"){
                    echo $link;
                }
        }
    }
    
    public static function mostrarRadio($valor, $descripcion,$nombreComponente){
        echo "<input type='radio' name='$nombreComponente' value='$valor' ".self::getChecked($nombreComponente,$valor)." >";
        echo "<label for='$nombreComponente'>".$descripcion." </label>";
    }
    
    public static function mostrarOption($valor, $descripcion, $nombreComponente){
        LogUtil::info("class GeneradorComponenteUtil", "mostrarOption");
        echo '<option value="' . $valor. '" '. self::getSelected($nombreComponente, $valor ) . ' >' . $descripcion . '</option>';
    }

    public static function getValue($name){
        LogUtil::info("class RenderUtil", "getValue");
        if(isset($_POST[$name])){
            if(!empty($_POST[$name])){
                return trim($_POST[$name]);
            }
        }
        return "";
    }

    public static function getChecked($name, $value) {
        LogUtil::info("class RenderUtil", "getChecked");
        if(isset($_POST[$name])){
            if($_POST[$name]==$value){
                return "checked";
            }
        }
        return "";
    }

    public static function getSelected($name, $value) {
        LogUtil::info("class RenderUtil", "getSelected");
        if(isset($_POST[$name])){
            if($_POST[$name]==$value){
                return "selected";
            }
        }
        return "";
    }
    
    public static function getDescripcionLugar($codigo, $tipo) {
        LogUtil::info("class RenderUtil", "getDescripcionLugar");
        $departamentos = array('01_AMAZONAS','02_ANCASH','03_APURIMAC','04_AREQUIPA','05_AYACUCHO','06_CAJAMARCA','07_CALLAO','08_CUSCO','09_HUANCAVELICA','10_HUANUCO','11_ICA','12_JUNIN','13_LA LIBERTAD','14_LAMBAYEQUE','15_LIMA','16_LORETO','17_MADRE DE DIOS','18_MOQUEGUA','19_PASCO','20_PIURA','21_PUNO','22_SAN MARTIN','23_TACNA','24_TUMBES','25_UCAYALI');
        $provincias  = array('0301_ABANCAY','0902_ACOBAMBA','0802_ACOMAYO','0202_AIJA','1602_ALTO AMAZONAS','1002_AMBO','0302_ANDAHUAYLAS','0903_ANGARAES','0803_ANTA','0303_ANTABAMBA','0203_ANTONIO RAYMONDI','0401_AREQUIPA','1302_ASCOPE','0204_ASUNCION','2502_ATALAYA','2002_AYABACA','0304_AYMARAES','2102_AZANGARO','0102_BAGUA','1502_BARRANCA','2202_BELLAVISTA','1303_BOLIVAR','0205_BOLOGNESI','0103_BONGARA','0602_CAJABAMBA','0601_CAJAMARCA','1503_CAJATAMBO','0804_CALCA','0701_CALLAO','0402_CAMANA','0805_CANAS','0806_CANCHIS','2302_CANDARAVE','0502_CANGALLO','1504_CANTA','2103_CARABAYA','0403_CARAVELI','0206_CARHUAZ','0207_CARLOS FITZCARRALD','0208_CASMA','0404_CASTILLA','0904_CASTROVIRREYNA','0405_CAYLLOMA','1505_CAÑETE','0603_CELENDIN','0101_CHACHAPOYAS','1203_CHANCHAMAYO','1304_CHEPEN','1401_CHICLAYO','1102_CHINCHA','0306_CHINCHEROS','0604_CHOTA','2104_CHUCUITO','0807_CHUMBIVILCAS','1209_CHUPACA','0905_CHURCAMPA','1202_CONCEPCION','0406_CONDESUYOS','0104_CONDORCANQUI','2402_CONTRALMIRANTE VILLAR','0605_CONTUMAZA','2501_CORONEL PORTILLO','0209_CORONGO','0305_COTABAMBAS','0801_CUSCO','0606_CUTERVO','1902_DANIEL ALCIDES CARRION','1003_DOS DE MAYO','2105_EL COLLAO','2203_EL DORADO','0808_ESPINAR','1402_FERREÑAFE','1802_GENERAL SANCHEZ CERRO','1311_GRAN CHIMU','0307_GRAU','1004_HUACAYBAMBA','0607_HUALGAYOC','2204_HUALLAGA','1005_HUAMALIES','0501_HUAMANGA','0503_HUANCA SANCOS','2003_HUANCABAMBA','2106_HUANCANE','0901_HUANCAVELICA','1201_HUANCAYO','0504_HUANTA','1001_HUANUCO','1506_HUARAL','0201_HUARAZ','0210_HUARI','0211_HUARMEY','1507_HUAROCHIRI','1508_HUAURA','0212_HUAYLAS','0906_HUAYTARA','1101_ICA','1803_ILO','0407_ISLAY','0608_JAEN','1204_JAUJA','2303_JORGE BASADRE','1305_JULCAN','1205_JUNIN','0809_LA CONVENCION','0505_LA MAR','0408_LA UNION','2205_LAMAS','1403_LAMBAYEQUE','2107_LAMPA','1010_LAURICOCHA','1006_LEONCIO PRADO','1501_LIMA','1603_LORETO','0506_LUCANAS','0105_LUYA','1702_MANU','1007_MARAÑON','2206_MARISCAL CACERES','0213_MARISCAL LUZURIAGA','1801_MARISCAL NIETO','1604_MARISCAL RAMON CASTILLA','1601_MAYNAS','2108_MELGAR','2109_MOHO','2004_MORROPON','2201_MOYOBAMBA','1103_NAZCA','0214_OCROS','1306_OTUZCO','1903_OXAPAMPA','1509_OYON','1307_PACASMAYO','1008_PACHITEA','2503_PADRE ABAD','2005_PAITA','0215_PALLASCA','1104_PALPA','0507_PARINACOCHAS','0810_PARURO','1901_PASCO','1308_PATAZ','0508_PAUCAR DEL SARA SARA','0811_PAUCARTAMBO','2207_PICOTA','1105_PISCO','2001_PIURA','0216_POMABAMBA','1009_PUERTO INCA','2101_PUNO','2504_PURUS','0812_QUISPICANCHI','0217_RECUAY','1605_REQUENA','2208_RIOJA','0106_RODRIGUEZ DE MENDOZA','2110_SAN ANTONIO DE PUTINA','0609_SAN IGNACIO','0610_SAN MARCOS','2209_SAN MARTIN','0611_SAN MIGUEL','0612_SAN PABLO','2111_SAN ROMAN','1309_SANCHEZ CARRION','2112_SANDIA','0218_SANTA','0613_SANTA CRUZ','1310_SANTIAGO DE CHUCO','1206_SATIPO','2008_SECHURA','0219_SIHUAS','0509_SUCRE','2006_SULLANA','2301_TACNA','1703_TAHUAMANU','2007_TALARA','1701_TAMBOPATA','2304_TARATA','1207_TARMA','0907_TAYACAJA','2210_TOCACHE','1301_TRUJILLO','2401_TUMBES','1606_UCAYALI','0813_URUBAMBA','0107_UTCUBAMBA','0510_VICTOR FAJARDO','0511_VILCAS HUAMAN','1312_VIRU','1011_YAROWILCA','1208_YAULI','1510_YAUYOS','0220_YUNGAY','2113_YUNGUYO','2403_ZARUMILLA');
        $distritos  = array('030101_ABANCAY','020502_ABELARDO PARDO LEZAMETA','040302_ACARI','021402_ACAS','081002_ACCHA','051102_ACCOMARCA','210202_ACHAYA','040502_ACHOMA','020902_ACO','120202_ACO','021902_ACOBAMBA','090201_ACOBAMBA','120702_ACOBAMBA','090102_ACOBAMBILLA','020402_ACOCHACA','050102_ACOCRO','120402_ACOLLA','080201_ACOMAYO','020602_ACOPAMPA','080202_ACOPIA','210102_ACORA','090103_ACORIA','080203_ACOS','050103_ACOS VINCHOS','090702_ACOSTAMBO','090703_ACRAQUIA','020302_ACZO','130602_AGALLPAMPA','220302_AGUA BLANCA','240302_AGUAS VERDES','120902_AHUAC','090704_AHUAYCHA','020201_AIJA','210302_AJOYANI','220902_ALBERTO LEVEAU','040802_ALCA','051002_ALCAMENCA','021903_ALFONSO UGARTE','151002_ALIS','220502_ALONSO DE ALVARADO','220202_ALTO BIAVO','230102_ALTO DE LA ALIANZA','211209_ALTO INAMBARI','110202_ALTO LARAN','160102_ALTO NANAY','080808_ALTO PICHIGUA','220402_ALTO SAPOSOA','040102_ALTO SELVA ALEGRE','160502_ALTO TAPICHE','210103_AMANTANI','100102_AMARILIS','020603_AMASHCA','150802_AMBAR','100201_AMBO','200502_AMOTAPE','211002_ANANEA','211302_ANAPIA','080302_ANCAHUASI','090302_ANCHONGA','050502_ANCO','090502_ANCO','030602_ANCO-HUALLO','150102_ANCON','061302_ANDABAMBA','090202_ANDABAMBA','040402_ANDAGUA','030201_ANDAHUAYLAS','081202_ANDAHUAYLILLAS','150902_ANDAJES','120203_ANDAMARCA','030202_ANDARAPA','040602_ANDARAY','131002_ANGASMARCA','060402_ANGUIA','021002_ANRA','020604_ANTA','080301_ANTA','090203_ANTA','030301_ANTABAMBA','210802_ANTAUTA','150702_ANTIOQUIA','020503_ANTONIO RAYMONDI','101104_APARICIO POMARES','120403_APATA','040401_APLAO','051003_APONGO','020504_AQUIA','150402_ARAHUAY','010202_ARAMANGO','100502_ARANCAY','210203_ARAPA','200503_ARENAL','040101_AREQUIPA','090402_ARMA','090118_ASCENSION','130201_ASCOPE','150502_ASIA','210204_ASILLO','051004_ASQUIPATA','010102_ASUNCION','060102_ASUNCION','020605_ATAQUERO','120404_ATAURA','150602_ATAVILLOS ALTO','150603_ATAVILLOS BAJO','150103_ATE','040303_ATICO','040304_ATIQUIPA','210104_ATUNCOLLA','150604_AUCALLAMA','050602_AUCARA','090403_AURAHUA','220802_AWAJUN','200201_AYABACA','050101_AYACUCHO','050402_AYAHUANCO','210303_AYAPATA','151003_AYAUCA','090602_AYAVI','151004_AYAVIRI','210801_AYAVIRI','050503_AYNA','040403_AYO','151005_AZANGARO','210201_AZANGARO','010701_BAGUA GRANDE','220203_BAJO BIAVO','160202_BALSAPUERTO','010103_BALSAS','060701_BAMBAMARCA','130302_BAMBAMARCA','020903_BAMBAS','150201_BARRANCA','160203_BARRANCA','150104_BARRANCO','220503_BARRANQUITA','101002_BAÑOS','050902_BELEN','160112_BELEN','040305_BELLA UNION','060802_BELLAVISTA','070102_BELLAVISTA','200602_BELLAVISTA','220201_BELLAVISTA','200802_BELLAVISTA DE LA UNION','200803_BERNAL','061102_BOLIVAR','130301_BOLIVAR','021502_BOLOGNESI','150105_BREÑA','020802_BUENA VISTA ALTA','200402_BUENOS AIRES','220702_BUENOS AIRES','130802_BULDIBUYO','021501_CABANA','050603_CABANA','211102_CABANA','040503_CABANACONDE','210702_CABANILLA','211103_CABANILLAS','220903_CACATACHI','021802_CACERES DEL PERU','060202_CACHACHI','131003_CACHICADAN','080303_CACHIMAYO','151006_CACRA','101102_CAHUAC','040306_CAHUACHO','160204_CAHUAPANAS','081102_CAICAY','230202_CAIRANI','090204_CAJA','060201_CAJABAMBA','020505_CAJACAY','060101_CAJAMARCA','021403_CAJAMARQUILLA','010702_CAJARURO','150301_CAJATAMBO','021003_CAJAY','130502_CALAMARCA','230103_CALANA','150503_CALANGO','210703_CALAPUJA','080401_CALCA','150803_CALETA DE CARQUIN','150703_CALLAHUANCA','040504_CALLALLI','090303_CALLANMARCA','070101_CALLAO','060602_CALLAYUC','250101_CALLERIA','061103_CALQUIS','220102_CALZADA','040201_CAMANA','081203_CAMANTI','230203_CAMILACA','210205_CAMINACA','220602_CAMPANILLA','010502_CAMPORREDONDO','250102_CAMPOVERDE','051005_CANARIA','100402_CANCHABAMBA','200302_CANCHAQUE','120405_CANCHAYLLO','230201_CANDARAVE','050201_CANGALLO','020506_CANIS','150401_CANTA','210105_CAPACHICA','080702_CAPACMARCA','030402_CAPAYA','210502_CAPAZO','160503_CAPELO','090404_CAPILLAS','130503_CARABAMBA','150106_CARABAYLLO','211104_CARACOTO','150704_CARAMPOMA','151007_CARANIA','050302_CARAPO','040301_CARAVELI','030403_CARAYBAMBA','021201_CARAZ','120104_CARHUACALLANGA','120502_CARHUAMAYO','051103_CARHUANCA','021404_CARHUAPAMPA','020601_CARHUAZ','050104_CARMEN ALTO','070103_CARMEN DE LA LEGUA REYNOSO','050604_CARMEN SALCEDO','180102_CARUMAS','130208_CASA GRANDE','021302_CASCA','022002_CASCAPARA','131101_CASCAS','021904_CASHAPAMPA','240202_CASITAS','020801_CASMA','220703_CASPISAPA','200104_CASTILLA','090401_CASTROVIRREYNA','021702_CATAC','200105_CATACAOS','061303_CATACHE','151008_CATAHUASI','061104_CATILLUC','150903_CAUJUL','140116_CAYALTI','051006_CAYARA','040603_CAYARANI','040505_CAYLLOMA','040103_CAYMA','100202_CAYNA','220504_CAYNARACHI','140202_CAÑARIS','081003_CCAPI','081204_CCARHUAYO','081205_CCATCA','090304_CCOCHACCASA','080102_CCORCA','060301_CELENDIN','150504_CERRO AZUL','040104_CERRO COLORADO','101103_CHACABAMBA','120802_CHACAPALPA','120105_CHACAPAMPA','020401_CHACAS','190202_CHACAYAN','020303_CHACCHO','010101_CHACHAPOYAS','040404_CHACHAS','150107_CHACLACAYO','030102_CHACOCHE','060403_CHADIN','100802_CHAGLLA','040307_CHALA','200403_CHALACO','060419_CHALAMARCA','050903_CHALCOS','030401_CHALHUANCA','081103_CHALLABAMBA','030506_CHALLHUAHUACHO','080703_CHAMACA','120204_CHAMBARA','061002_CHANCAY','150605_CHANCAY','061304_CHANCAYBAÑOS','120301_CHANCHAMAYO','110302_CHANGUILLO','131202_CHAO','040308_CHAPARRA','030404_CHAPIMARCA','040105_CHARACATO','130604_CHARAT','040803_CHARCANA','190101_CHAUPIMARCA','110203_CHAVIN','021004_CHAVIN DE HUANTAR','100503_CHAVIN DE PARIARCA','101101_CHAVINILLO','050605_CHAVIÑA','220904_CHAZUTA','080602_CHECACUPE','080502_CHECCA','150804_CHECRAS','130401_CHEPEN','060103_CHETILLA','010104_CHETO','030203_CHIARA','050105_CHIARA','130202_CHICAMA','120106_CHICCHE','040604_CHICHAS','150705_CHICLA','140101_CHICLAYO','040106_CHIGUATA','060404_CHIGUIRIP','120107_CHILCA','150505_CHILCA','050504_CHILCAS','040405_CHILCAYMARCA','050904_CHILCAYOC','060502_CHILETE','010105_CHILIQUIN','130803_CHILLIA','060405_CHIMBAN','021801_CHIMBOTE','110201_CHINCHA ALTA','110204_CHINCHA BAJA','100103_CHINCHAO','080304_CHINCHAYPUJIO','081302_CHINCHERO','030601_CHINCHEROS','090503_CHINCHIHUASI','090305_CHINCHO','021905_CHINGALPO','020304_CHINGAS','050606_CHIPAO','220905_CHIPURANA','020501_CHIQUIAN','010602_CHIRIMOTO','060902_CHIRINOS','010302_CHISQUILLA','040501_CHIVAY','140302_CHOCHOPE','040406_CHOCO','130203_CHOCOPE','151009_CHOCOS','180202_CHOJATA','100702_CHOLON','120108_CHONGOS ALTO','120903_CHONGOS BAJO','140102_CHONGOYAPE','190302_CHONTABAMBA','060803_CHONTALI','101108_CHORAS','060406_CHOROPAMPA','060603_CHOROS','150108_CHORRILLOS','060401_CHOTA','230402_CHUCATAMANI','210106_CHUCUITO','130902_CHUGAY','060702_CHUGUR','200401_CHULUCANAS','050702_CHUMPI','060302_CHUMUCH','050505_CHUNGUI','210206_CHUPA','120901_CHUPACA','090405_CHUPAMARCA','120111_CHUPURO','010106_CHUQUIBAMBA','040601_CHUQUIBAMBA','030701_CHUQUIBAMBILLA','100307_CHUQUIS','090501_CHURCAMPA','100104_CHURUBAMBA','010303_CHURUJA','050202_CHUSCHI','150109_CIENEGUILLA','030103_CIRCA','230104_CIUDAD NUEVA','180203_COALAQUE','210304_COASA','210107_COATA','150506_COAYLLO','010503_COCABAMBA','040702_COCACHACRA','090406_COCAS','020102_COCHABAMBA','060407_COCHABAMBA','100403_COCHABAMBA','010603_COCHAMAL','150904_COCHAMARCA','021102_COCHAPETI','030603_COCHARCAS','021405_COCHAS','120205_COCHAS','151010_COCHAS','130903_COCHORCO','100902_CODO DEL POZUZO','021803_COISHCO','210602_COJATA','200504_COLAN','060804_COLASAY','051007_COLCA','120112_COLCA','020103_COLCABAMBA','030405_COLCABAMBA','090705_COLCABAMBA','010504_COLCAMAR','081004_COLCHA','151011_COLONIA','100203_COLPAS','080704_COLQUEMARCA','081104_COLQUEPATA','020507_COLQUIOC','050802_COLTA','020803_COMANDANTE NOEL','120206_COMAS','150110_COMAS','080603_COMBAPATA','090104_CONAYCA','051104_CONCEPCION','120201_CONCEPCION','100204_CONCHAMARCA','060408_CONCHAN','021503_CONCHUCOS','060203_CONDEBAMBA','130303_CONDORMARCA','080802_CONDOROMA','210505_CONDURIRI','090306_CONGALLA','021406_CONGAS','010505_CONILA','210902_CONIMA','160601_CONTAMANA','060501_CONTUMAZA','150302_COPA','010203_COPALLIN','211303_COPANI','040506_COPORAQUE','080803_COPORAQUE','050701_CORACORA','210305_CORANI','050803_CORCULLA','090603_CORDOVA','020202_CORIS','050703_CORONEL CASTAÑEDA','020901_CORONGO','010304_COROSHA','240102_CORRALES','060303_CORTEGANA','060104_COSPAN','030502_COTABAMBAS','040801_COTAHUASI','021703_COTAPARACO','030406_COTARUSE','120602_COVIRIALI','080402_COYA','030503_COYLLURQUI','200804_CRISTO NOS VALGA','230110_CRNL GREGORIO ALBARRACIN','210306_CRUCERO','180103_CUCHUMBAYA','090105_CUENCA','150706_CUENCA','010305_CUISPES','060604_CUJILLO','021103_CULEBRAS','120113_CULLHUAS','010703_CUMBA','210803_CUPI','060503_CUPISNIQUE','200107_CURA MORI','030104_CURAHUASI','030714_CURASCO','130904_CURGOS','230204_CURIBAYA','120406_CURICACA','250303_CURIMANA','030702_CURPAHUASI','020904_CUSCA','080101_CUSCO','081206_CUSIPATA','060601_CUTERVO','211304_CUTURAPI','211202_CUYOCUYO','220505_CUÑUMBUQUI','100602_DANIEL ALOMIA ROBLES','090706_DANIEL HERNANDEZ','040703_DEAN VALDIVIA','210402_DESAGUADERO','080902_ECHARATE','061003_EDUARDO VILLANUEVA','150111_EL AGUSTINO','180302_EL ALGARROBAL','200702_EL ALTO','090504_EL CARMEN','110205_EL CARMEN','200303_EL CARMEN DE LA FRONTERA','010402_EL CENEPA','220403_EL ESLABON','110303_EL INGENIO','120407_EL MANTARO','010704_EL MILAGRO','030302_EL ORO','010204_EL PARCO','130102_EL PORVENIR','220906_EL PORVENIR','061105_EL PRADO','200108_EL TALLAN','120114_EL TAMBO','021303_ELEAZAR GUZMAN BARRON','220803_ELIAS SOPLIN VARGAS','160504_EMILIO SAN MARTIN','060105_ENCAÑADA','080801_ESPINAR','230403_ESTIQUE','230404_ESTIQUE-PAMPA','140103_ETEN','140104_ETEN PUERTO','160103_FERNANDO LORES','140201_FERREÑAFE','021304_FIDEL OLIVAS ESCUDERO','170202_FITZCARRALD','130103_FLORENCIA DE MORA','010306_FLORIDA','200202_FRIAS','030703_GAMARRA','150303_GORGOR','190203_GOYLLARISQUIZGA','010107_GRANADA','061004_GREGORIO PITA','110206_GROCIO PRADO','130702_GUADALUPE','131203_GUADALUPITO','060504_GUZMANGO','220103_HABANA','030504_HAQUIRA','100603_HERMILIO VALDIZAN','120207_HEROINAS TOLEDO','151012_HONGOS','100903_HONORIA','060805_HUABAL','050607_HUAC-HUAS','021005_HUACACHI','100205_HUACAR','021504_HUACASCHUQUE','100401_HUACAYBAMBA','050905_HUACAÑA','030604_HUACCANA','021006_HUACCHIS','120904_HUACHAC','021007_HUACHIS','150801_HUACHO','090106_HUACHOCOLPA','090707_HUACHOCOLPA','190102_HUACHON','090407_HUACHOS','150707_HUACHUPAMPA','020203_HUACLLAN','100701_HUACRACHUCO','120116_HUACRAPUQUIO','210403_HUACULLANI','060703_HUALGAYOC','120117_HUALHUAS','220204_HUALLAGA','020508_HUALLANCA','021202_HUALLANCA','150805_HUALMAY','130901_HUAMACHUCO','120408_HUAMALI','120905_HUAMANCACA CHICO','050403_HUAMANGUILLA','051008_HUAMANQUIQUIA','150403_HUAMANTANGA','090408_HUAMATAMBO','051105_HUAMBALPA','010604_HUAMBO','040507_HUAMBO','060409_HUAMBOS','151013_HUAMPARA','040508_HUANCA','090307_HUANCA-HUANCA','190303_HUANCABAMBA','200301_HUANCABAMBA','120119_HUANCAN','210601_HUANCANE','110502_HUANCANO','051001_HUANCAPI','150304_HUANCAPON','030204_HUANCARAMA','081105_HUANCARANI','030205_HUANCARAY','051009_HUANCARAYLLA','040407_HUANCARQUI','010108_HUANCAS','130804_HUANCASPATA','090101_HUANCAVELICA','151014_HUANCAYA','120101_HUANCAYO','130104_HUANCHACO','020104_HUANCHAY','090119_HUANDO','021505_HUANDOVAL','151015_HUANGASCAR','030105_HUANIPACA','081005_HUANOQUITE','050401_HUANTA','151016_HUANTAN','021008_HUANTAR','230205_HUANUARA','100101_HUANUCO','040309_HUANUHUANU','150708_HUANZA','030303_HUAQUIRCA','150601_HUARAL','130605_HUARANCHAL','060903_HUARANGO','020101_HUARAZ','021001_HUARI','190103_HUARIACA','090709_HUARIBAMBA','120703_HUARICOLCA','120409_HUARIPAMPA','200304_HUARMACA','021101_HUARMEY','081207_HUARO','150709_HUAROCHIRI','080305_HUAROCONDO','150404_HUAROS','120704_HUASAHUASI','120120_HUASICANCHA','060304_HUASMIN','130504_HUASO','020509_HUASTA','021203_HUATA','210108_HUATA','210603_HUATASANI','150806_HUAURA','120803_HUAY-HUAY','051010_HUAYA','090604_HUAYACUNDO ARMA','021104_HUAYAN','030206_HUAYANA','021204_HUAYLAS','130805_HUAYLILLAS','021906_HUAYLLABAMBA','081303_HUAYLLABAMBA','020510_HUAYLLACAYAN','090107_HUAYLLAHUARA','021602_HUAYLLAN','021704_HUAYLLAPAMPA','030704_HUAYLLATI','190104_HUAYLLAY','090308_HUAYLLAY GRANDE','030407_HUAYLLO','040804_HUAYNACOTAS','130806_HUAYO','080903_HUAYOPATA','210903_HUAYRAPATA','090601_HUAYTARA','120121_HUAYUCACHI','151017_HUAÑEC','170204_HUEPETUHE','120410_HUERTAS','220603_HUICUNGO','220907_HUIMBAYOC','110503_HUMAY','170302_IBERIA','110101_ICA','061005_ICHOCAN','040509_ICHUPAMPA','180204_ICHUÑA','200603_IGNACIO ESCUDERO','050404_IGUAIN','150606_IHUARI','230302_ILABAYA','210501_ILAVE','140303_ILLIMO','180301_ILO','010205_IMAZA','150507_IMPERIAL','160602_INAHUAYA','170102_INAMBARI','140203_INCAHUASI','210604_INCHUPALLA','230105_INCLAN','020105_INDEPENDENCIA','051106_INDEPENDENCIA','110504_INDEPENDENCIA','150112_INDEPENDENCIA','160104_INDIANA','120122_INGENIO','010506_INGUILPATA','250103_IPARIA','160101_IQUITOS','040605_IRAY','250302_IRAZOLA','040704_ISLAY','230303_ITE','210307_ITUATA','090108_IZCUCHACA','170301_IÑAPARI','101105_JACAS CHICO','100504_JACAS GRANDE','040107_JACOBO HUNTER','060801_JAEN','010705_JAMALCA','020106_JANGAS','120411_JANJAILLO','040310_JAQUI','120401_JAUJA','140304_JAYANCA','010307_JAZAN','160205_JEBEROS','160510_JENARO HERRERA','220104_JEPELACIO','130703_JEQUETEPEQUE','060106_JESUS','101001_JESUS','150113_JESUS MARIA','050115_JESUS NAZARENO','200203_JILILI','100505_JIRCAN','101003_JIVIA','060305_JORGE CHAVEZ','100604_JOSE CRESPO Y CASTILLO','210207_JOSE DOMINGO CHOQUEHUANCA','060306_JOSE GALVEZ','140105_JOSE LEONARDO ORTIZ','040129_JOSE LUIS BUSTAMANTE Y RIVERO','061006_JOSE MANUEL QUIROZ','040202_JOSE MARIA QUIMPER','061007_JOSE SABOGAL','030304_JUAN ESPINOZA MEDRANO','220908_JUAN GUERRA','220601_JUANJUI','090309_JULCAMARCA','120412_JULCAN','130501_JULCAN','210401_JULI','211101_JULIACA','010301_JUMBILLA','120501_JUNIN','030408_JUSTO APU SAHUARAURA','030219_KAQUIABAMBA','210404_KELLUYO','080907_KIMBIRI','030207_KISHUARA','081106_KOSÑIPATA','080503_KUNTURKANKI','200109_LA ARENA','220909_LA BANDA DE SHILCAYO','200703_LA BREA','180205_LA CAPILLA','060904_LA COIPA','240103_LA CRUZ','130606_LA CUESTA','061305_LA ESPERANZA','130105_LA ESPERANZA','061106_LA FLORIDA','200505_LA HUACA','010109_LA JALCA','040108_LA JOYA','020107_LA LIBERTAD','060312_LA LIBERTAD DE PALLAN','200404_LA MATANZA','020204_LA MERCED','090505_LA MERCED','150114_LA MOLINA','120801_LA OROYA','020905_LA PAMPA','010201_LA PECA','070104_LA PERLA','020511_LA PRIMAVERA','070105_LA PUNTA','060605_LA RAMADA','110102_LA TINGUI?A','100301_LA UNION','120705_LA UNION','200110_LA UNION','140106_LA VICTORIA','150115_LA VICTORIA','170104_LABERINTO','021506_LACABAMBA','150405_LACHAQUI','140107_LAGUNAS','160206_LAGUNAS','200204_LAGUNAS','150710_LAHUAYTAMBO','060410_LAJAS','200305_LALAQUIZ','220501_LAMAS','080403_LAMAY','140301_LAMBAYEQUE','030106_LAMBRAMA','050804_LAMPA','210701_LAMPA','150607_LAMPIAN','010501_LAMUD','200604_LANCONES','150711_LANGA','080504_LANGUI','090605_LARAMARCA','050608_LARAMATE','150712_LARAOS','151018_LARAOS','130106_LAREDO','080404_LARES','040510_LARI','090109_LARIA','160105_LAS AMAZONAS','200111_LAS LOMAS','170103_LAS PIEDRAS','060806_LAS PIRIAS','080505_LAYO','010110_LEIMEBAMBA','050609_LEONCIO PRADO','150807_LEONCIO PRADO','120413_LEONOR ORDO?EZ','010111_LEVANTO','150101_LIMA','010605_LIMABAMBA','080306_LIMATAMBO','211203_LIMBANI','150116_LINCE','151019_LINCHA','090301_LIRCAY','080705_LIVITACA','060107_LLACANORA','021705_LLACLLIN','210804_LLALLI','021305_LLAMA','060411_LLAMA','020301_LLAMELLIN','061107_LLAPA','021507_LLAPO','100501_LLATA','050610_LLAUTA','120603_LLAYLLA','021407_LLIPA','110402_LLIPATA','050408_LLOCHEGUA','120414_LLOCLLAPAMPA','180206_LLOQUE','021306_LLUMPA','080706_LLUSCO','040511_LLUTA','200704_LOBITOS','090506_LOCROJA','230301_LOCUMBA','040311_LOMAS','010606_LONGAR','130304_LONGOTEA','010507_LONGUITA','010508_LONYA CHICO','010706_LONYA GRANDE','110103_LOS AQUIJES','060108_LOS BAÑOS DEL INCA','050203_LOS MOROCHUCOS','150117_LOS OLIVOS','200705_LOS ORGANOS','050611_LUCANAS','021307_LUCMA','131102_LUCMA','030409_LUCRE','081208_LUCRE','050506_LUIS CARRANZA','150508_LUNAHUANA','050405_LURICOCHA','150118_LURIGANCHO','150119_LURIN','010509_LUYA','010510_LUYA VIEJO','100605_LUYANDO','040512_MACA','210805_MACARI','021804_MACATE','040408_MACHAGUAY','130608_MACHE','081304_MACHUPICCHU','210301_MACUSANI','151020_MADEAN','170203_MADRE DE DIOS','040513_MADRIGAL','010112_MAGDALENA','060109_MAGDALENA','130204_MAGDALENA DE CAO','150120_MAGDALENA DEL MAR','040520_MAJES','150509_MALA','021105_MALVAS','030705_MAMARA','150305_MANAS','200706_MANCORA','022003_MANCOS','020512_MANGAS','160207_MANSERICHE','090110_MANTA','170201_MANU','140204_MANUEL MESONES MURO','120208_MANZANARES','160505_MAQUIA','030505_MARA','080604_MARANGANI','080904_MARANURA','081305_MARAS','021706_MARCA','130905_MARCABAL','050805_MARCABAMBA','081209_MARCAPATA','120804_MARCAPOMACOCHA','020606_MARCARA','090205_MARCAS','200605_MARCAVELICA','120415_MARCO','110304_MARCONA','100105_MARGOS','010511_MARIA','050204_MARIA PARADO DE BELLIDO','100606_MARIANO DAMASO BERAUN','040109_MARIANO MELGAR','040203_MARIANO NICOLAS VALCARCEL','100311_MARIAS','150713_MARIATANA','010607_MARISCAL BENAVIDES','040204_MARISCAL CACERES','090111_MARISCAL CACERES','010113_MARISCAL CASTILLA','120209_MARISCAL CASTILLA','131103_MARMOT','021009_MASIN','250104_MASISEA','120416_MASMA','120417_MASMA CHICCHE','022004_MATACOTO','120210_MATAHUASI','180207_MATALAQUE','240303_MATAPALO','060110_MATARA','021205_MATO','150701_MATUCANA','120604_MAZAMARI','160106_MAZAN','210109_MAÑAZO','040705_MEJIA','030706_MICAELA BASTIDAS','200606_MIGUEL CHECA','060307_MIGUEL IGLESIAS','010608_MILPUC','060412_MIRACOSTA','040110_MIRAFLORES','100506_MIRAFLORES','150122_MIRAFLORES','151021_MIRAFLORES','020305_MIRGAS','120211_MITO','130107_MOCHE','140305_MOCHUMI','210901_MOHO','100803_MOLINO','010114_MOLINOPAMPA','120418_MOLINOS','131004_MOLLEBAMBA','040111_MOLLEBAYA','040701_MOLLENDO','090409_MOLLEPAMPA','080307_MOLLEPATA','131005_MOLLEPATA','120419_MONOBAMBA','140108_MONSEFU','200205_MONTERO','010115_MONTEVIDEO','100507_MONZON','180101_MOQUEGUA','220910_MORALES','050906_MORCOLLA','021805_MORO','120805_MOROCOCHA','160208_MORONA','140306_MORROPE','200405_MORROPON','080204_MOSOC LLACTA','140307_MOTUPE','090112_MOYA','220101_MOYOBAMBA','120420_MUQUI','120421_MUQUIYAUYO','021308_MUSGA','210208_MUÑANI','060905_NAMBALLE','060111_NAMORA','061108_NANCHOC','160107_NAPO','160301_NAUTA','150905_NAVAN','110301_NAZCA','021806_NEPEÑA','210704_NICASIO','040205_NICOLAS DE PIEROLA','061109_NIEPOS','010401_NIEVA','061306_NINABAMBA','190105_NINACACA','140109_NUEVA ARICA','220804_NUEVA CAJAMARCA','250106_NUEVA REQUENA','120212_NUEVE DE JULIO','021809_NUEVO CHIMBOTE','150510_NUEVO IMPERIAL','090113_NUEVO OCCORO','221002_NUEVO PROGRESO','210806_NUÑOA','101106_OBAS','010512_OCALLI','050612_OCAÑA','030605_OCOBAMBA','080905_OCOBAMBA','081210_OCONGATE','080804_OCORURO','090606_OCOYO','040206_OCOÑA','021401_OCROS','050106_OCROS','110104_OCUCAJE','010513_OCUMAL','210705_OCUVIRI','210308_OLLACHEA','081306_OLLANTAYTAMBO','211305_OLLARAYA','010116_OLLEROS','020108_OLLEROS','140308_OLMOS','081006_OMACHA','151022_OMAS','180201_OMATE','010609_OMIA','120503_ONDORES','130807_ONGON','030606_ONGOY','040409_ORCOPAMPA','120213_ORCOTUNA','030305_OROPESA','081211_OROPESA','210807_ORURILLO','050613_OTOCA','130601_OTUZCO','060308_OXAMARCA','190301_OXAPAMPA','050806_OYOLO','150901_OYON','140110_OYOTUN','120422_PACA','200206_PACAIPAMPA','130402_PACANGA','050704_PACAPAUSA','150511_PACARAN','150608_PACARAOS','130704_PACASMAYO','050107_PACAYCASA','081007_PACCARITAMBO','060413_PACCHA','120423_PACCHA','120806_PACCHA','150808_PACCHO','150123_PACHACAMAC','030306_PACHACONAS','110105_PACHACUTEC','090510_PACHAMARCA','150906_PACHANGARA','100313_PACHAS','230106_PACHIA','220604_PACHIZA','020513_PACLLON','030208_PACOBAMBA','180303_PACOCHA','140309_PACORA','030209_PACUCHA','250301_PADRE ABAD','160603_PADRE MARQUEZ','050907_PAICO','130205_PAIJAN','200207_PAIMAS','200501_PAITA','220605_PAJARILLO','090114_PALCA','120706_PALCA','210706_PALCA','230107_PALCA','120707_PALCAMAYO','190304_PALCAZU','190106_PALLANCHACRA','021508_PALLASCA','080805_PALLPATA','110401_PALPA','120605_PAMPA HERMOSA','160604_PAMPA HERMOSA','030210_PAMPACHIRI','040410_PAMPACOLCA','040805_PAMPAMARCA','080506_PAMPAMARCA','101107_PAMPAMARCA','021206_PAMPAROMAS','020109_PAMPAS','021509_PAMPAS','090701_PAMPAS','021707_PAMPAS CHICO','240104_PAMPAS DE HOSPITAL','100801_PANAO','120424_PANCAN','120606_PANGOA','220911_PAPAPLAYA','240304_PAPAYAL','110505_PARACAS','150202_PARAMONGA','130610_PARANDAY','050807_PARARCA','021708_PARARIN','050205_PARAS','210707_PARATIA','120425_PARCO','110106_PARCONA','130808_PARCOY','220805_PARDO MIGUEL','020110_PARIACOTO','020607_PARIAHUANCA','120124_PARIAHUANCA','160302_PARINARI','200701_PARIÑAS','021603_PAROBAMBA','081001_PARURO','160209_PASTAZA','211204_PATAMBUCO','140117_PATAPO','030707_PATAYPAMPA','130809_PATAZ','150203_PATIVILCA','190204_PAUCAR','090206_PAUCARA','090507_PAUCARBAMBA','210110_PAUCARCOLLA','040112_PAUCARPATA','081101_PAUCARTAMBO','190107_PAUCARTAMBO','021010_PAUCAS','050801_PAUSA','090711_PAZOS','160402_PEBAS','061001_PEDRO GALVEZ','211003_PEDRO VILCA APAZA','120302_PERENE','211205_PHARA','130810_PIAS','210111_PICHACANI','120303_PICHANAQUI','080910_PICHARI','080806_PICHIGUA','030107_PICHIRHUA','220701_PICOTA','140111_PICSI','090115_PILCHACA','120125_PILCOMAYO','210503_PILCUYO','100111_PILLCO MARCA','081008_PILLPINTO','220704_PILLUANA','090607_PILPICHACA','140112_PIMENTEL','060606_PIMPINGOS','100404_PINRA','220506_PINTO RECODO','060414_PION','020111_PIRA','080405_PISAC','210405_PISACOMA','110501_PISCO','021301_PISCOBAMBA','220404_PISCOYACU','010514_PISUQUIA','140205_PITIPO','080605_PITUMARCA','200101_PIURA','210112_PLATERIA','030410_POCOHUANCA','230108_POCOLLAY','040113_POCSI','040114_POLOBAYA','221003_POLVORA','021601_POMABAMBA','120426_POMACANCHA','080205_POMACANCHI','030211_POMACOCHA','090207_POMACOCHA','060807_POMAHUACA','140118_POMALCA','210406_POMATA','021011_PONTO','130108_POROTO','080103_POROY','220806_POSIC','210209_POTONI','190305_POZUZO','030708_PROGRESO','010515_PROVIDENCIA','220705_PUCACACA','140119_PUCALA','060808_PUCARA','120126_PUCARA','210708_PUCARA','150124_PUCUSANA','080308_PUCYURA','021207_PUEBLO LIBRE','150121_PUEBLO LIBRE','110107_PUEBLO NUEVO','110207_PUEBLO NUEVO','130403_PUEBLO NUEVO','140206_PUEBLO NUEVO','150125_PUENTE PIEDRA','190306_PUERTO BERMUDEZ','100901_PUERTO INCA','160506_PUINAHUA','061307_PULAN','050705_PULLO','160108_PUNCHANA','100508_PUNCHAO','210101_PUNO','040706_PUNTA DE BOMBON','150126_PUNTA HERMOSA','150127_PUNTA NEGRA','180208_PUQUINA','050601_PUQUIO','250401_PURUS','210605_PUSI','211001_PUTINA','151023_PUTINZA','160109_PUTUMAYO','040806_PUYCA','050706_PUYUSCA','100509_PUÑOS','040807_QUECHUALLA','080507_QUEHUE','080906_QUELLOUNO','040115_QUEQUEÑA','090608_QUERCO','200607_QUERECOTILLO','050901_QUEROBAMBA','060607_QUEROCOTILLO','060415_QUEROCOTO','101004_QUEROPALCA','211206_QUIACA','040312_QUICACHA','021907_QUICHES','120127_QUICHUAY','230206_QUILAHUANI','040207_QUILCA','211004_QUILCAPUNCU','120128_QUILCAS','022005_QUILLO','150512_QUILMANA','151024_QUINCHES','180209_QUINISTAQUILLAS','010117_QUINJALCA','151025_QUINOCAY','050108_QUINUA','021604_QUINUABAMBA','081212_QUIQUIJANA','131006_QUIRUVILCA','090713_QUISHUAR','100106_QUISQUI','090609_QUITO-ARMA','100316_QUIVILLA','080707_QUIÑOTA','021908_RAGASH','021012_RAHUAPAMPA','160401_RAMON CASTILLA','030608_RANRACANCHA','022006_RANRAHIRCA','021013_RAPAYAN','250201_RAYMONDI','130206_RAZURI','010308_RECTA','021701_RECUAY','140113_REQUE','160501_REQUENA','150714_RICARDO PALMA','120427_RICRAN','150128_RIMAC','200806_RINCONADA LLICUAR','040606_RIO GRANDE','110403_RIO GRANDE','120607_RIO NEGRO','010403_RIO SANTIAGO','120608_RIO TAMBO','220801_RIOJA','100317_RIPAN','080206_RONDOCAN','101005_RONDOS','090208_ROSARIO','210606_ROSASPATA','220507_RUMISAPA','100601_RUPA-RUPA','030307_SABAINO','040116_SABANDIA','220405_SACANCHE','040117_SACHACA','050303_SACSAMARCA','050614_SAISA','040607_SALAMANCA','110108_SALAS','140310_SALAS','130109_SALAVERRY','090714_SALCABAMBA','090715_SALCAHUASI','200406_SALITRAL','200608_SALITRAL','060809_SALLIQUE','130611_SALPO','230109_SAMA','210210_SAMAN','021807_SAMANCO','180104_SAMEGUA','040208_SAMUEL PASTOR','120129_SAN AGUSTIN','110506_SAN ANDRES','060608_SAN ANDRES DE CUTERVO','150715_SAN ANDRES DE TUPICOCHA','210211_SAN ANTON','030709_SAN ANTONIO','150513_SAN ANTONIO','150716_SAN ANTONIO','210113_SAN ANTONIO','220912_SAN ANTONIO','090310_SAN ANTONIO DE ANTAPARCO','030212_SAN ANTONIO DE CACHI','040514_SAN ANTONIO DE CHUCA','090610_SAN ANTONIO DE CUSICANCHA','150129_SAN BARTOLO','150717_SAN BARTOLOME','060505_SAN BENITO','061202_SAN BERNARDINO','150130_SAN BORJA','100703_SAN BUENAVENTURA','150406_SAN BUENAVENTURA','010309_SAN CARLOS','110507_SAN CLEMENTE','010516_SAN CRISTOBAL','050615_SAN CRISTOBAL','180105_SAN CRISTOBAL','220706_SAN CRISTOBAL','021408_SAN CRISTOBAL DE RAJAN','150718_SAN DAMIAN','190108_SAN FCO.DE ASIS DE YARUSYACAN','060810_SAN FELIPE','220807_SAN FERNANDO','100206_SAN FRANCISCO','101006_SAN FRANCISCO DE ASIS','100107_SAN FRANCISCO DE CAYRAN','010118_SAN FRANCISCO DE DAGUAS','050707_SAN FRANCISCO DE RAVACAYCO','090611_SAN FRANCISCO DE SANGAYAICO','010517_SAN FRANCISCO DEL YESO','210309_SAN GABAN','061110_SAN GREGORIO','220707_SAN HILARION','060901_SAN IGNACIO','090612_SAN ISIDRO','150131_SAN ISIDRO','010119_SAN ISIDRO DE MAINO','240105_SAN JACINTO','050808_SAN JAVIER DE ALPABAMBA','010518_SAN JERONIMO','030213_SAN JERONIMO','080104_SAN JERONIMO','120130_SAN JERONIMO DE TUNAN','151026_SAN JOAQUIN','130705_SAN JOSE','140311_SAN JOSE','210212_SAN JOSE','110109_SAN JOSE DE LOS MOLINOS','060906_SAN JOSE DE LOURDES','120214_SAN JOSE DE QUERO','220301_SAN JOSE DE SISA','050109_SAN JOSE DE TICLLAS','050809_SAN JOSE DE USHUA','060811_SAN JOSE DEL ALTO','021909_SAN JUAN','050616_SAN JUAN','060112_SAN JUAN','090410_SAN JUAN','050110_SAN JUAN BAUTISTA','110110_SAN JUAN BAUTISTA','160113_SAN JUAN BAUTISTA','200407_SAN JUAN DE BIGOTE','030411_SAN JUAN DE CHACÑA','060609_SAN JUAN DE CUTERVO','150719_SAN JUAN DE IRIS','120906_SAN JUAN DE ISCOS','120907_SAN JUAN DE JARPA','240106_SAN JUAN DE LA VIRGEN','060416_SAN JUAN DE LICUPIS','010519_SAN JUAN DE LOPECANCHA','150132_SAN JUAN DE LURIGANCHO','150133_SAN JUAN DE MIRAFLORES','020306_SAN JUAN DE RONTOY','210213_SAN JUAN DE SALINAS','040118_SAN JUAN DE SIGUAS','150720_SAN JUAN DE TANTARANCHE','040119_SAN JUAN DE TARUCANI','110208_SAN JUAN DE YANAC','211207_SAN JUAN DEL ORO','120428_SAN LORENZO','150721_SAN LORENZO DE QUINTI','020701_SAN LUIS','061203_SAN LUIS','150134_SAN LUIS','150514_SAN LUIS','060610_SAN LUIS DE LUCMA','120304_SAN LUIS DE SHUARO','021014_SAN MARCOS','090716_SAN MARCOS DE ROCCHAC','220303_SAN MARTIN','150135_SAN MARTIN DE PORRES','150722_SAN MATEO','150723_SAN MATEO DE OTAO','050501_SAN MIGUEL','061101_SAN MIGUEL','150136_SAN MIGUEL','020608_SAN MIGUEL DE ACO','150609_SAN MIGUEL DE ACOS','101007_SAN MIGUEL DE CAURI','030214_SAN MIGUEL DE CHACCRAMPA','020514_SAN MIGUEL DE CORPANQUI','200306_SAN MIGUEL DE EL FAIQUE','090508_SAN MIGUEL DE MAYOCC','010601_SAN NICOLAS','020702_SAN NICOLAS','061201_SAN PABLO','080606_SAN PABLO','160404_SAN PABLO','220205_SAN PABLO','021409_SAN PEDRO','050617_SAN PEDRO','080607_SAN PEDRO','030108_SAN PEDRO DE CACHORA','120708_SAN PEDRO DE CAJAS','150724_SAN PEDRO DE CASTA','021015_SAN PEDRO DE CHANA','100108_SAN PEDRO DE CHAULAN','120429_SAN PEDRO DE CHUNAN','090509_SAN PEDRO DE CORIS','110209_SAN PEDRO DE HUACARPANA','150725_SAN PEDRO DE HUANCAYRE','050908_SAN PEDRO DE LARCAY','130701_SAN PEDRO DE LLOC','050618_SAN PEDRO DE PALCO','151027_SAN PEDRO DE PILAS','190205_SAN PEDRO DE PILLAO','100207_SAN RAFAEL','220206_SAN RAFAEL','120305_SAN RAMON','220508_SAN ROQUE DE CUMBAZA','080406_SAN SALVADOR','050909_SAN SALVADOR DE QUIJE','080105_SAN SEBASTIAN','061111_SAN SILVESTRE DE COCHAN','150501_SAN VICENTE DE CAÑETE','130906_SANAGORAN','050301_SANCOS','050619_SANCOS','211201_SANDIA','150726_SANGALLAYA','080207_SANGARARA','021808_SANTA','080901_SANTA ANA','090411_SANTA ANA','050620_SANTA ANA DE HUAYCAHUACHO','190206_SANTA ANA DE TUSI','150137_SANTA ANITA','120807_SANTA BARBARA DE CARHUACAYAN','010520_SANTA CATALINA','200408_SANTA CATALINA DE MOSSA','021208_SANTA CRUZ','060611_SANTA CRUZ','061301_SANTA CRUZ','110404_SANTA CRUZ','160210_SANTA CRUZ','150610_SANTA CRUZ DE ANDAMARCA','131007_SANTA CRUZ DE CHUCA','150727_SANTA CRUZ DE COCACHACRA','150515_SANTA CRUZ DE FLORES','060506_SANTA CRUZ DE TOLEDO','150728_SANTA EULALIA','040120_SANTA ISABEL DE SIGUAS','150809_SANTA LEONOR','050621_SANTA LUCIA','210709_SANTA LUCIA','150810_SANTA MARIA','030215_SANTA MARIA DE CHICMO','150138_SANTA MARIA DEL MAR','100109_SANTA MARIA DEL VALLE','040121_SANTA RITA DE SIGUAS','010610_SANTA ROSA','021510_SANTA ROSA','030710_SANTA ROSA','050507_SANTA ROSA','060812_SANTA ROSA','140114_SANTA ROSA','150139_SANTA ROSA','210504_SANTA ROSA','210808_SANTA ROSA','220304_SANTA ROSA','120215_SANTA ROSA DE OCOPA','150407_SANTA ROSA DE QUIVES','120808_SANTA ROSA DE SACCO','080908_SANTA TERESA','080106_SANTIAGO','110111_SANTIAGO','150729_SANTIAGO DE ANCHUCAYA','130207_SANTIAGO DE CAO','130811_SANTIAGO DE CHALLAS','021410_SANTIAGO DE CHILCAS','090613_SANTIAGO DE CHOCORVOS','131001_SANTIAGO DE CHUCO','050304_SANTIAGO DE LUCANAMARCA','050910_SANTIAGO DE PAUCARAY','050111_SANTIAGO DE PISCHA','210214_SANTIAGO DE PUPUJA','090614_SANTIAGO DE QUIRAHUARA','150140_SANTIAGO DE SURCO','150730_SANTIAGO DE TUNA','050406_SANTILLANA','200409_SANTO DOMINGO','120135_SANTO DOMINGO DE ACOBAMBA','090615_SANTO DOMINGO DE CAPILLAS','060612_SANTO DOMINGO DE LA CAPILLA','010521_SANTO TOMAS','060613_SANTO TOMAS','080701_SANTO TOMAS','090311_SANTO TOMAS DE PATA','021209_SANTO TORIBIO','120133_SAPALLANGA','200208_SAPILLICA','220401_SAPOSOA','160507_SAQUENA','050810_SARA SARA','160605_SARAYACU','051011_SARHUA','130907_SARIN','130908_SARTIMBAMBA','120601_SATIPO','220913_SAUCE','061308_SAUCEPAMPA','051107_SAURAMA','120430_SAUSA','150811_SAYAN','131104_SAYAPULLO','040808_SAYLA','080107_SAYLLA','140115_SAÑA','030412_SAÑAYCA','120132_SAÑO','090312_SECCLLA','200801_SECHURA','250202_SEPAHUA','061309_SEXI','220708_SHAMBOYACU','220509_SHANAO','220914_SHAPAJA','220305_SHATOJA','020609_SHILLA','010310_SHIPASBAMBA','100321_SHUNQUI','221004_SHUNTE','022007_SHUPLUY','040515_SIBAYO','120134_SICAYA','200209_SICCHEZ','021910_SICSIBAMBA','080601_SICUANI','021901_SIHUAS','100322_SILLAPATA','130110_SIMBAL','190109_SIMON BOLIVAR','211005_SINA','120431_SINCOS','100510_SINGA','130613_SINSICAP','131008_SITABAMBA','060204_SITACOCHA','230405_SITAJARA','050407_SIVIA','040122_SOCABAYA','050112_SOCOS','060614_SOCOTA','010120_SOLOCO','010121_SONCHE','200307_SONDOR','200308_SONDORILLO','160508_SOPLIN','050911_SORAS','030413_SORAYA','220105_SORITOR','060309_SOROCHUCO','150731_STO. DOMINGO DE LOS OLLEROS','110112_SUBTANJALLA','020205_SUCCHA','060310_SUCRE','120809_SUITUCANCHA','200601_SULLANA','150611_SUMBILCA','110210_SUNAMPE','150204_SUPE','150205_SUPE PUERTO','150732_SURCO','090717_SURCUBAMBA','150141_SURQUILLO','230406_SUSAPAYA','080807_SUYCKUTAMBO','200210_SUYO','060907_TABACONAS','220510_TABALOSOS','060417_TACABAMBA','230101_TACNA','170303_TAHUAMANU','250203_TAHUANIA','030216_TALAVERA','200506_TAMARINDO','050113_TAMBILLO','050508_TAMBO','090616_TAMBO','110211_TAMBO DE MORA','200114_TAMBO GRANDE','030501_TAMBOBAMBA','170101_TAMBOPATA','030109_TAMBURCO','151028_TANTA','100511_TANTAMAYO','090412_TANTARA','060507_TANTARICA','021709_TAPACOCHA','030414_TAPAIRIHUA','040516_TAPAY','160509_TAPICHE','120709_TAPO','190207_TAPUC','210607_TARACO','220901_TARAPOTO','230401_TARATA','080407_TARAY','020112_TARICA','120701_TARMA','230407_TARUCACHI','110113_TATE','021511_TAUCA','040809_TAURIA','130812_TAURIJA','151029_TAURIPAMPA','130801_TAYABAMBA','160211_TENIENTE CESAR LOPEZ ROJAS','040123_TIABAYA','110405_TIBILLO','230408_TICACO','021710_TICAPAMPA','190110_TICLACAYAN','020515_TICLLOS','090413_TICRAPO','160303_TIGRE','210904_TILALI','020610_TINCO','010522_TINGO','220709_TINGO DE PONASA','220406_TINGO DE SAPOSOA','211306_TINICACHI','080608_TINTA','030415_TINTAY','090718_TINTAY PUNCU','190111_TINYAHUARCO','040411_TIPAN','210114_TIQUILLACA','210215_TIRAPATA','040517_TISCO','221001_TOCACHE','060418_TOCMOCHE','151030_TOMAS','100208_TOMAY KICHWA','040810_TOMEPAMPA','061112_TONGOD','180106_TORATA','030416_TORAYA','060615_TORIBIO CASANOVA','040811_TORO','160110_TORRES CAUSANA','010611_TOTORA','050206_TOTOS','100904_TOURNAVISTA','120908_TRES DE DICIEMBRE','220710_TRES UNIDOS','010523_TRITA','160304_TROMPETEROS','130101_TRUJILLO','140312_TUCUME','140120_TUMAN','030217_TUMAY HUARACA','061204_TUMBADEN','240101_TUMBES','120432_TUNAN MARCA','080508_TUPAC AMARU','110508_TUPAC AMARU INCA','151031_TUPE','030711_TURPAY','030218_TURPO','040518_TUTI','180210_UBINAS','221005_UCHIZA','130305_UCHUMARCA','040124_UCHUMAYO','021016_UCO','130306_UCUNCHA','120504_ULCUMAYO','210809_UMACHIRI','100804_UMARI','211307_UNICACHI','061113_UNION AGUA BLANCA','050708_UPAHUACHO','040413_URACA','030607_URANMARCA','160305_URARINAS','081201_URCOS','130813_URPAY','081301_URUBAMBA','210310_USICAYOS','130614_USQUIL','060311_UTCO','061310_UTICYACU','040412_UÑON','010311_VALERA','160606_VARGAS GUERRA','150812_VEGUETA','150612_VEINTISIETE DE NOVIEMBRE','080708_VELILLE','070106_VENTANILLA','190112_VICCO','200805_VICE','200507_VICHAYAL','130111_VICTOR LARCO HERRERA','210710_VILAVILA','090116_VILCA','030712_VILCABAMBA','080909_VILCABAMBA','190208_VILCABAMBA','051012_VILCANCHOS','051101_VILCAS HUAMAN','150142_VILLA EL SALVADOR','150143_VILLA MARIA DEL TRIUNFO','190307_VILLA RICA','210115_VILQUE','210608_VILQUE CHICO','050114_VINCHOS','120136_VIQUES','040414_VIRACO','131201_VIRU','030713_VIRUNDO','051108_VISCHONGO','010612_VISTA ALEGRE','110305_VISTA ALEGRE','151033_VITIS','120306_VITOC','040125_VITOR','151032_VIÑAC','080108_WANCHAQ','200410_YAMANGO','010312_YAMBRASBAMBA','010707_YAMON','020906_YANAC','030417_YANACA','120909_YANACANCHA','190113_YANACANCHA','190201_YANAHUANCA','040126_YANAHUARA','211208_YANAHUAYA','022008_YANAMA','080501_YANAOCA','040608_YANAQUIHUA','100323_YANAS','080408_YANATILE','040519_YANQUE','220106_YANTALO','160511_YAQUERANA','040127_YARABAMBA','250105_YARINACOCHA','100110_YARUMAYO','040313_YAUCA','110114_YAUCA DEL ROSARIO','090117_YAULI','120433_YAULI','120810_YAULI','081009_YAURISQUE','020804_YAUTAN','020703_YAUYA','120434_YAUYOS','151001_YAUYOS','061311_YAUYUCAN','160403_YAVARI','060508_YONAN','220808_YORONGOS','081307_YUCAY','180211_YUNGA','020611_YUNGAR','022001_YUNGAY','211301_YUNGUYO','020907_YUPAN','040128_YURA','021210_YURACMARCA','220809_YURACYACU','160201_YURIMAGUAS','250204_YURUA','100905_YUYAPICHIS','220511_ZAPATERO','240301_ZARUMILLA','210407_ZEPITA','240201_ZORRITOS','080309_ZURITE','150516_ZUÑIGA','090710_ÑAHUIMPUQUIO');
        $descripcion="";
        switch ($tipo) {
            case 'departamento':
                    $departamentoSeleccionado = preg_grep ("/".$codigo."/",$departamentos);
                    $descripcion = substr(current($departamentoSeleccionado),3);
                break;
            case 'provincia':
                    $provinciasSeleccionado = preg_grep ("/".$codigo."/",$provincias);
                    $descripcion = substr(current($provinciasSeleccionado),5);
                break;
            case 'distrito':
                    $distritosSeleccionado = preg_grep ("/".$codigo."/",$distritos);
                    $descripcion = substr(current($distritosSeleccionado),7);
                break;
            default:
                break;
        }
        return $descripcion;
    }
}
?>
